﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HZ.Supervise.Web.Common
{
    public partial class FindAllAreaCity : BasePage
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {
            dataBind();
          
        }

        /// <summary>
        /// 数据绑定
        /// </summary>
        private void dataBind()
        {
            int i;
            HZ.Supervise.IBLL.IBLL_Area area = HZ.Supervise.BLLFactory.IBLL_Area();
            string a = CurrentAccount.GetUser().Org.Area.AreaID;
            IList<Model.Area> list = area.GetSonAreas(CurrentAccount.GetUser().Org.Area.AreaID, 1, 0, out i);
            Model.Area Area = new HZ.Supervise.Model.Area();
            Area.AreaID = CurrentAccount.GetUser().Org.Area.AreaID;
            Area.AreaName = "市区医院";
            list.Insert(0, Area);
            gvwAreaList.DataSource = list;
            gvwAreaList.DataBind();
        }


        protected void gvwselect_RowDataBound(object sender, GridViewRowEventArgs e)
        {

        }

        protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        {
            dataBind();
        }
    }
}
